| 水無瀬の部屋 > Programming > sample > tools > misc > atoffset.h | 
|---|
   1: //*********************************************************
   2: // プロジェクト: TOOLS
   3: //   ファイル名: atoffset.h
   4: //*********************************************************
   5: #ifndef ATOFFSET_HEAD_INCLUDED
   6: #define ATOFFSET_HEAD_INCLUDED
   7: 
   8: 
   9: //*********************************************************
  10: // コンパイル環境の指定
  11: //*********************************************************
  12: #ifndef PRIVATE_TOOLS_HEAD_INCLUDED // 冗長ガード
  13: #include <header/_tools.h>
  14: #ifndef PRIVATE_TOOLS_HEAD_INCLUDED // ガード名の検査
  15: #error "? PRIVATE_TOOLS_HEAD_INCLUDED"
  16: #endif // #ifndef PRIVATE_TOOLS_HEAD_INCLUDED
  17: #endif // #ifndef PRIVATE_TOOLS_HEAD_INCLUDED
  18: 
  19: 
  20: //*********************************************************
  21: // マクロ の 定義
  22: //*********************************************************
  23: #define atoffset( type, ptr, offset ) ( *reinterpret_cast<type *>( (BYTE *)(static_cast<const void *>(ptr)) + (offset) ) )
  24: 
  25: 
  26: #endif // #ifndef ATOFFSET_HEAD_INCLUDED
  27: 
  28: 
  29: //** end **
  30: 
参照:
custom.cpp, shitemid.cpp, instdlg.cpp, instdlg.cpp, instdlg.cpp
| 水無瀬の部屋 > sample > tools > misc > atoffset.h | 
|---|
このページは cpp2web が出力しました。
水無瀬 優 postmaster@katsura-kotonoha.sakura.ne.jp
http://katsura-kotonoha.sakura.ne.jp/prog/code/tools/misc/atoffset_h.shtml
>> Amazon.co.jp 『たまゆら童子』 へ
>> 楽天ブックス 『たまゆら童子』 へ